﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace WOWMultiPlay
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Helper_Settings.LoadSettings(Setting_Global.SettingsFilePath);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new ChooseInstanceForm());
            if (Setting_Global.LoadedInstance)
            {
                Application.Run(new ChooseProfileForm());
                if (Setting_Global.LoadedProfile)
                {
                    Application.Run(new MainForm());
                }
            }

            //Temp.ini clean up
            Helper_Other.DeleteRunningProfileTempFile();
        }
    }
}